package com.uifp.gradebook.business_objects;

import java.util.ArrayList;


public class SemesterParent {
	private int year;
	private String yearString;
	private String semester;
	private String label;
	private ArrayList<SemesterChild> children;
	
	public SemesterParent(){
		this.semester = "";
		this.label = "";
		this.yearString = "";
	}

	public int getYear() {
		return year;
	}

	public void setYear(int year) {
		this.year = year;
		this.yearString = Integer.toString(year);
		this.label = this.semester +" "+this.yearString;
	}

	public String getYearString() {
		return yearString;
	}

	public void setYearString(String yearString) {
		this.yearString = yearString;
		this.year = Integer.parseInt(yearString);
		this.label = this.yearString +" "+this.semester;
	}

	public String getLabel() {
		return label;
	}

	public void setLabel(String label) {
		this.label = label;
	}

	public String getSemester() {
		return semester;
	}

	public void setSemester(String semester) {
		this.semester = semester;
	}

	public ArrayList<SemesterChild> getChildren() {
		return children;
	}

	public void setChildren(ArrayList<SemesterChild> children) {
		this.children = children;
	}

}
